package com.fjrz.bbxwj.entity

import com.module.lemlin.rxhttp.HttpServiceData
import java.io.Serializable

data class UserSmsResponse(
    var data: Any
) : HttpServiceData()

data class UserLoginResponse(
    val data: UserLogin
) : HttpServiceData()

data class UserLogin(
    val avatar: String,
    val createtime: Int,
    val expires_in: Int,
    val expiretime: Int,
    val gender: Int,
    val id: Int,
    val introduction: Any,
    val is_certified_merchant: Int,
    val mobile: String,
    val nickname: String,
    val token: String,
    val user_id: Int
)

data class UserInfoResponse(
    val data: UserInfo
) : HttpServiceData()

data class UserInfo(
    val avatar: String,
    val fans: Int,
    val follow_status: Int,
    val follows: Int,
    val id: Int,
    val introduction: String?,
    val nickname: String,
    val video_likes: Int
)


data class UserMeResponse(
    val data: UserMe
) : HttpServiceData()

data class UserMe(
    val avatar: String,
    val gender: Int,
    val id: Int,
    val introduction: String?,
    val is_certified_merchant: Int,
    val mobile: String,
    val nickname: String,
    val password_set: Int,
    val merchant_name: String? = null,
    val certification: UserCertification? = null
)

data class UserCertification(
    val createtime: Int,
    val id: Int,
    val id_card_back_image: String,
    val id_card_front_image: String,
    val identity_number: String,
    val name: String,
    val note: Any,
    val review_time: Any,
    val status: Int,
    val user_id: Int
)

data class UserRequest(
    var avatar: String? = null,
    var nickname: String? = null,
    var introduction: String? = null
)

data class User(
    val id: Int,
    val avatar: String,
    val introduction: String?,
    val nickname: String,
    var who: Who
) : Serializable {
    enum class Who {
        USER_HE, USER_ME
    }
}

data class UserIsFollow(
    var user_id: Int = 0,
    var isFollow: Int = 0
)

data class UserAttentionResponse(
    val data: Data2Page<UserAttention>
) : HttpServiceData() {
    var loadMore = false
    var status = 0
}

data class UserAttention(
    val avatar: String,
    val id: Int,
    val introduction: String,
    val nickname: String
)